# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=poison
pkgver=1.5.41
pkgrel=1
groups=('blackarch' 'blackarch-scanner')
pkgdesc='A fast, asynchronous syn and udp scanner.'
arch=('x86_64' 'aarch64')
url='http://nologin.org/main.pl?action=codeList&'
license=('GPL')
source=("http://warlord.nologin.org/download/$pkgname-$pkgver.tar.gz")
sha512sums=('d54af6321ad87d6389ef3c9548a3f50206179582')

prepare() {
  cd "$pkgname-$pkgver"

  sed -i 's|/usr/local/etc|/etc|' Makefile
  sed -i 's|/usr/local|/usr|' Makefile
}

build() {
  cd "$pkgname-$pkgver"

  make
}

package() {
  cd "$pkgname-$pkgver"

  install -Dm 755 $pkgname "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 fps.txt "$pkgdir/etc/$pkgname/fps.txt"
}

